import _import from '../_import'
const organizationLayout = _import('/organizationLayout/Layout')
// const systemLayout = _import('/systemLayout/Layout')

export default [
  {
    path: '/redirect',
    component: organizationLayout,
    children: [
      {
        path: '/redirect/:path*',
        component: _import('/redirect/index'),
        meta: {
          inShop: true
        }
      }
    ]
  },
  // {
  //   path: '/',
  //   component: systemLayout,
  //   redirect: 'organizationList',
  //   hidden: true,
  //   children: [
  //     { // 商户列表
  //       path: 'organizationList',
  //       component: _import('/systemLayout/organizationList'),
  //       name: 'organizationList',
  //       meta: {
  //         isLogin: true
  //       }
  //     },
  //     { // 页面管理
  //       path: 'pagesManage',
  //       component: _import('/systemLayout/pagesManage'),
  //       name: 'pagesManage',
  //       meta: {
  //         title: '页面管理',
  //         isLogin: true
  //       }
  //     },
  //     { // 证书类型ieb
  //       path: 'certificate/types',
  //       component: _import('/systemLayout/certificate/list'),
  //       name: 'certificateTypes',
  //       meta: {
  //         title: '页面管理',
  //         isLogin: true
  //       }
  //     }
  //   ]
  // },
  {
    path: '/',
    component: organizationLayout,
    redirect: 'dashboard/index',
    children: [
      {
        path: 'dashboard/index',
        component: _import('/organizationLayout/dashboard'),
        name: 'dashboard',
        meta: {
          title: 'dashboard',
          icon: 'charts',
          noCache: true,
          inShop: true,
          isLogin: true,
          padding: '0px',
          bgColor: '#f6f6f6'
        }
      }
    ]
  },
  {
    path: '/login',
    component: _import('/login/login'),
    meta: {
      title: '登录'
    }
  },
  {
    path: '/register',
    component: _import('/login/register'),
    meta: {
      title: '注册'
    }
  },
  {
    path: '/reset',
    component: _import('/login/reset'),
    meta: {
      title: '重置密码'
    }
  },
  {
    path: '*',
    component: _import('/error/NotFound')
  }
]
